package com.cms.app;

import java.util.concurrent.atomic.AtomicInteger;

import org.springframework.boot.Banner.Mode;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration; 
import org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
 
@SpringBootApplication(scanBasePackages = {
		"com.cms.controller",
		"com.cms.service.impl",
		"com.cms.convert",
		"com.cms.redis",
		"com.cms.conf",
		"com.cms.handler",
		"com.cms.dao",
		"com.cms.freemark",
		"com.cms.report",
		"com.cms.process"
}, exclude = { 
		WebSocketAutoConfiguration.class,
		RedisAutoConfiguration.class, 
		DataSourceAutoConfiguration.class,
		JdbcTemplateAutoConfiguration.class,
		FreeMarkerAutoConfiguration.class
		})
public class CmsApplication {

	/**
	 * {@link AtomicInteger}
	 * @desc ContentNegotiatingViewResolver 启动类
	 * @param args
	 */
	public static void main(String[] args) {
		new SpringApplicationBuilder(CmsApplication.class).web(true).bannerMode(Mode.CONSOLE).run(args);
	}
}
